import request from '@/plugins/axios/request';
let baseURL = process.env.VUE_APP_BASE_API + "/flow/file"

export function search(data) {
  return request({
    url: `${baseURL}/search`,
    method: 'POST',
    data: data,
    isShowMessage: false
  })
}

export function add(data) {
  return request({
    url: `${baseURL}/add`,
    method: 'POST',
    data: data,
    isShowMessage: false
  })
}


export function update(data) {
  return request({
    url: `${baseURL}/update`,
    method: 'POST',
    data: data,
    isShowMessage: false
  })
}


export function deleteFun(data) {
  return request({
    url: `${baseURL}/delete`,
    method: 'POST',
    data: data,
    isShowMessage: false
  })
}
export function clone(data) {
  return request({
    url: `${baseURL}/clone`,
    method: 'POST',
    data: data,
    isShowMessage: false
  })
}

export function detail(data) {
  return request({
    url: `${baseURL}/detail`,
    method: 'POST',
    data: data,
    isShowMessage: false
  })
}

